package com.zl.learning.arithmetic.data_structure;

import org.junit.Test;

import java.util.Comparator;
import java.util.Map;
import java.util.TreeMap;
import java.util.stream.IntStream;

public class TestRBTree {

    @Test
    public void test1() {
        Map<Integer, Integer> map = new TreeMap<>(Comparator.comparing(Integer::intValue));
        IntStream.rangeClosed(1, 100).forEach(r -> map.put(r, r));
        map.remove(30);
        System.out.println(map);
    }
}
